package ee.sepp.aui.ui.menu;

import com.vaadin.ui.Button;
import com.vaadin.ui.Panel;
import com.vaadin.ui.VerticalLayout;

@SuppressWarnings("serial")
public class AuiMenu extends Panel {
	
	public AuiMenu() {
		super("Menu");
		
		setHeight("100%");
		setWidth(null);
		VerticalLayout menuContent = new VerticalLayout();
		menuContent.addComponent(new Button("Pig", new MenuButtonListener("pig")));
		menuContent.addComponent(new Button("Cat", new MenuButtonListener("cat")));
		menuContent.addComponent(new Button("Dog", new MenuButtonListener("dog")));
		menuContent.addComponent(new Button("Reindeer", new MenuButtonListener("reindeer")));
		menuContent.addComponent(new Button("Penguin", new MenuButtonListener("penguin")));
		menuContent.addComponent(new Button("Sheep", new MenuButtonListener("sheep")));
		menuContent.setWidth(null);
		menuContent.setMargin(true);
		setContent(menuContent);
	}

}
